package com.yxq.mdt.app.modules.shoppingcart.bean;

import java.util.List;

/**
 * @author L
 * @time 2019-10-24
 * @describe 购物车
 */
public class CartBean {


    /**
     * row_count : 1
     * page_count : 1
     * list : [{"cart_id":59,"goods_id":57,"goods_name":"日本冈本001安全套男超薄003持久旗舰岗本002避孕套0.01高潮情趣t","goods_pic":"http://yxqoss.oss-cn-hangzhou.aliyuncs.com/web/uploads/image/store_1/91670838b241743462adae809434a4348ec446c6.png","num":1,"attr_list":[],"price":49.9,"unitPrice":0,"max_num":0,"disabled":true}]
     * mch_list : []
     */

    private String row_count;
    private int page_count;
    private List<ListBean> list;
    private List<?> mch_list;

    public String getRow_count() {
        return row_count;
    }

    public void setRow_count(String row_count) {
        this.row_count = row_count;
    }

    public int getPage_count() {
        return page_count;
    }

    public void setPage_count(int page_count) {
        this.page_count = page_count;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public List<?> getMch_list() {
        return mch_list;
    }

    public void setMch_list(List<?> mch_list) {
        this.mch_list = mch_list;
    }

    public static class ListBean {
        /**
         * cart_id : 59
         * goods_id : 57
         * goods_name : 日本冈本001安全套男超薄003持久旗舰岗本002避孕套0.01高潮情趣t
         * goods_pic : http://yxqoss.oss-cn-hangzhou.aliyuncs.com/web/uploads/image/store_1/91670838b241743462adae809434a4348ec446c6.png
         * num : 1
         * attr_list : []
         * price : 49.9
         * unitPrice : 0
         * max_num : 0
         * disabled : true
         */

        private int cart_id;
        private int goods_id;
        private String goods_name;
        private String goods_pic;
        private int num;
        private double price;
        private double unitPrice;
        private int max_num;
        private boolean disabled;
        private List<AttrListBean> attr_list;
        private boolean checked;

        public void setChecked(boolean checked) {
            this.checked = checked;
        }

        public boolean isChecked() {
            return checked;
        }

        public int getCart_id() {
            return cart_id;
        }

        public void setCart_id(int cart_id) {
            this.cart_id = cart_id;
        }

        public int getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(int goods_id) {
            this.goods_id = goods_id;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getGoods_pic() {
            return goods_pic;
        }

        public void setGoods_pic(String goods_pic) {
            this.goods_pic = goods_pic;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public double getUnitPrice() {
            return unitPrice;
        }

        public void setUnitPrice(double unitPrice) {
            this.unitPrice = unitPrice;
        }

        public int getMax_num() {
            return max_num;
        }

        public void setMax_num(int max_num) {
            this.max_num = max_num;
        }

        public boolean isDisabled() {
            return disabled;
        }

        public void setDisabled(boolean disabled) {
            this.disabled = disabled;
        }

        public List<AttrListBean> getAttr_list() {
            return attr_list;
        }

        public void setAttr_list(List<AttrListBean> attr_list) {
            this.attr_list = attr_list;
        }

        public static class AttrListBean {

            /**
             * attr_group_name : 规格
             * attr_name : 默认
             */

            private String attr_group_name;
            private String attr_name;

            public String getAttr_group_name() {
                return attr_group_name;
            }

            public void setAttr_group_name(String attr_group_name) {
                this.attr_group_name = attr_group_name;
            }

            public String getAttr_name() {
                return attr_name;
            }

            public void setAttr_name(String attr_name) {
                this.attr_name = attr_name;
            }
        }
    }
}
